package cn.edu.neusoft.food729.service;

import cn.edu.neusoft.food729.Bean.CollectBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface CollectService {
    //收藏/取消收藏
    @GET("userCollectShop.do")
    Call<CollectBean> collectShop(
            @Query("user_id") String user_id,
            @Query("shop_id") int shop_id);

    @GET("userCollectFood.do")
    Call<CollectBean> collectFood(
            @Query("user_id") String user_id,
            @Query("food_id") int food_id);

    @GET("userCollectShop.do")
    Call<CollectBean> uncollectShop(
            @Query("user_id") String user_id,
            @Query("shop_id") int shop_id);

    @GET("userCollectFood.do")
    Call<CollectBean> uncollectFood(
            @Query("user_id") String user_id,
            @Query("food_id") int food_id);

    //是否已收藏
    @GET("isCollected.do")
    Call<CollectBean> exists(@Query("user_id") String user_id,
                             @Query("shop_food_id") int shop_food_id,
                             @Query("flag") int flag);

}

